package com.altekis.kanbankaze.shared.events;

import com.altekis.kanbankaze.shared.TaskDTO;

@SuppressWarnings("serial")
public class CardUpdatedRemoteEvent extends TrojanEvent<CardUpdatedRemoteEventHandler>{
	public static Type<CardUpdatedRemoteEventHandler> TYPE = new Type<CardUpdatedRemoteEventHandler>();
	public TaskDTO taskDTO;
	
	public CardUpdatedRemoteEvent() {
		// Used by RPC serialization
	}
	public CardUpdatedRemoteEvent(TaskDTO updatedTaskDTO) {
		taskDTO = updatedTaskDTO;
	}

	@Override
	public Type<CardUpdatedRemoteEventHandler> getAssociatedType() {
	    return TYPE;
	}

	@Override
	protected void dispatch(CardUpdatedRemoteEventHandler handler) {
		handler.onCardUpdatedRemote(this);
	}
}
